<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="stylesheet" href="../dist/css/bootstrap.min.css">
  <title>内联表单布局</title>
</head>
<body class="p-3">

  <form class="row g-3 align-items-center">
    <div class="col-auto">
      <input type="text" class="form-control" placeholder="用户名">
    </div>
    <div class="col-auto">
      <input type="password" class="form-control" placeholder="密码">
    </div>
    <div class="col-auto">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="checkbox">
        <label class="form-check-label" for="checkbox">
          Remember me
        </label>
      </div>
    </div>
    <div class="col-auto">
      <button type="submit" class="btn btn-primary">登录</button>
    </div>
  </form>

  <div class="my-5"></div>
  
  <form class="row row-cols-lg-auto g-3 align-items-center">
    <div class="col-12">
      <input type="text" class="form-control" placeholder="用户名">
    </div>
    <div class="col-12">
      <input type="password" class="form-control" placeholder="密码">
    </div>
    <div class="col-12">
      <div class="form-check">
        <input class="form-check-input" type="checkbox" id="checkbox">
        <label class="form-check-label" for="checkbox">
          Remember me
        </label>
      </div>
    </div>
    <div class="col-12">
      <button type="submit" class="btn btn-primary">登录</button>
    </div>
  </form>
</body>
</html>